home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 May: Tool Chest / Dev.CD May 98 TC.toast / Tool Chest / Communications Toolbox / CTB Development Resources / CommToolbox Roadmap / Comm Toolbox Calls / cards.xml < prev    next >
Encoding:
Text File  |  1992-05-12  |  3.2 KB  |  54 lines

  1. card_3053.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3053</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2636</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3178.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>field</type>
  15.         <visible> <true /> </visible>
  16.         <dontWrap> <false /> </dontWrap>
  17.         <dontSearch> <false /> </dontSearch>
  18.         <sharedText> <false /> </sharedText>
  19.         <fixedLineHeight> <false /> </fixedLineHeight>
  20.         <autoTab> <false /> </autoTab>
  21.         <lockText> <true /> </lockText>
  22.         <rect>
  23.             <left>0</left>
  24.             <top>0</top>
  25.             <right>480</right>
  26.             <bottom>240</bottom>
  27.         </rect>
  28.         <style>scrolling</style>
  29.         <autoSelect> <false /> </autoSelect>
  30.         <showLines> <false /> </showLines>
  31.         <wideMargins> <true /> </wideMargins>
  32.         <multipleLines> <false /> </multipleLines>
  33.         <reservedFamily> 0 </reservedFamily>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>left</textAlign>
  37.         <font>Monaco</font>
  38.         <textSize>9</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <textHeight>12</textHeight>
  41.         <name>text</name>
  42.         <script></script>
  43.     </part>
  44.     <content>
  45.         <layer>card</layer>
  46.         <id>1</id>
  47.         <text>CMStatus
  48. Getting connection status information
  49.  
  50. Function        CMStatus(hConn: ConnHandle; VAR sizes: CMBufferSizes; 
  51.                 VAR flags: CMStatFlags): CMErr;
  52.  
  53. Description:    CMStatus returns a variety of useful status information 
  54.                 about a connection.    Your application can call this 
  55.                 routine at interrupt level.
  56.                 
  57.                 sizes is a variable of type CMBufferSizes that contains
  58.                 the number of characters to be read or written on the 
  59.                 data, control, and attention channels. The indexes of 
  60.                 the array are as follows:
  61.  
  62.                 cmDataIn, cmDataOut, cmCntlIn, cmCntlOut, cmAttnIn, 
  63.                 cmAttnOut, cmRsrvIn, cmRsrvOut.
  64.  
  65.                 flags is a bit field with the following masks:    
  66.  
  67.                 CONST
  68.                                         {tool is opening connection}
  69.                     cmStatusOpening                =    $00000001;
  70.                                         {connection is open}
  71.                     cmStatusOpen                =    $00000002;
  72.                                         {tool is closing connection}
  73.                     cmStatusClosing                =    $00000004;
  74.                                         {data present on data channel}
  75.                     cmStatusDataAvail            =    $00000008;
  76.                                         {data present on cntl channel}
  77.                     cmStatusCntlAvail            =    $00000010;
  78.                                         {data present on attn channel}
  79.                     cmStatusAttnAvail            =    $00000020;
  80.                                         {data read pending}
  81.                     cmStatusDRPend                =    $00000040;
  82.                                         {data write pending}
  83.                     cmStatusDWPend                =    $00000080;
  84.                                         {cntl read pending}
  85.                     cmStatusCRPend                =    $00000100;
  86.                                         {cntl write pending}
  87.                     cmStatusCWPend                =    $00000200;
  88.                                         {attn read pending}
  89.                     cmStatusARPend                =    $00000400;
  90.                                         {attn write pending}
  91.                     cmStatusAWPend                =    $00000800;
  92.                                         {tool is breaking the connection}
  93.                     cmStatusBreakPending        =    $00001000;
  94.                                         {tool is ‚Äúlistening‚Äù for data}
  95.                     cmStatusListenPend            =    $00002000;
  96.                                         {call waiting for tool to handle}
  97.                     cmStatusIncomingCallPresent    =    $00004000;
  98.  
  99.  
  100.                 TYPE
  101.                     CMStatFlags                    =    LONGINT;
  102.  
  103.  
  104. Result Codes    cmGenericError, cmNoErr, cmNotSupported.
  105. </text>
  106.     </content>
  107.     <name></name>
  108.     <script></script>
  109. </card>
  110.  
  111.  
  112.